package dd.control;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import dd.view.CreateForm;
import dd.view.MainScreen;
import dd.view.SetChoicesForClosedEvent;

public class CreateEventButtonController implements ActionListener {

	// attributes
	CreateForm frame;

	//constructor
	public CreateEventButtonController (CreateForm f) {
		frame = f;
	}

	public void actionPerformed(ActionEvent arg0) {
		// show createForm
		 SetChoicesForClosedEvent form = new SetChoicesForClosedEvent();
		form.setVisible(true);
		
		// close mainframe window
		frame.dispose();
	}
}